package com.cyy.friend.service;

import com.cyy.friend.dao.NoFriendDao;
import com.cyy.friend.pojo.NoFriend;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
public class NoFriendService {

    @Autowired
    private NoFriendDao noFriendDao;

    @Transactional
    public void addNoFriend(String userid,String friendid){

        NoFriend noFriend = new NoFriend();
        noFriend.setFriendid(friendid);
        noFriend.setUserid(userid);
        noFriendDao.save(noFriend);
    }
}
